package com.superman;

import net.mof.manual.JsonMark;
import net.mof.manual.ManualJsonProperty;

import java.io.Serializable;

/**
 * @author LiYueHui
 * @date 2019-05-30
 */
@JsonMark
public class MarkFriendContent implements Serializable {

	@ManualJsonProperty("card")
	CardUser card;
	@ManualJsonProperty("start")
	private int start;
	@ManualJsonProperty("end")
	private int end;

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getEnd() {
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}

	public CardUser getCard() {
		return card;
	}

	public void setCard(CardUser card) {
		this.card = card;
	}

	@JsonMark
	public static class CardUser implements Serializable {

		final static String TYPE = "type";
		final static String ID = "id";
		final static String NAME = "name";
		final static String AVATAR = "avatar";
		final static String SIGN = "sign";

		@ManualJsonProperty(TYPE)
		private String type = "user";

		@ManualJsonProperty(ID)
		private String uid;

		@ManualJsonProperty(NAME)
		private String name;

		@ManualJsonProperty(AVATAR)
		private String avatar;

		@ManualJsonProperty(SIGN)
		private String sign;

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		public String getUid() {
			return uid;
		}

		public void setUid(String uid) {
			this.uid = uid;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getAvatar() {
			return avatar;
		}

		public void setAvatar(String avatar) {
			this.avatar = avatar;
		}

		public String getSign() {
			return sign;
		}

		public void setSign(String sign) {
			this.sign = sign;
		}

	}
}
